// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'

Vue.config.productionTip = false

// 设置请求工具跨域
axios.defaults.withCredentials=true;

import {config0, config1, vueMethod} from "./utils/common"; // 全局公共方法
Vue.prototype.config0 = config0;
Vue.prototype.config1 = config1;
Vue.prototype.vueMethod = vueMethod;
import {Public} from './utils/pubilc'
Vue.prototype.public = Public;
import {URL0, URL1} from './utils/baseUrl';
Vue.prototype.URL0 = URL0;
Vue.prototype.URL1 = URL1;

// 全局引入vux组件的配置
import vuxcomms from './utils/vuxcomms'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
